import java.lang.module.FindException;

public class demo2 {
   /* public static void main(String[] args) {
        int a =10;
        Integer ii = a;//自动装箱
        Integer ii1 = Integer.valueOf(a);//显示装箱

        Integer ii2 = new Integer(10);
        int b = ii2;//自动拆箱
        int b1 = ii2.intValue();//显示拆箱

        System.out.println(ii);
        System.out.println(b);
    }*/

   /* public static void main(String[] args) {
        Array array = new Array();
        array.setArray(0,1);
        array.setArray(1,9);
        array.setArray(2,"qweweq");

        //获取字符串
        String str = (String) array.getArray(2);//需要强转
    }*/

    /*public static void main(String[] args) {
        Array<String> array = new Array<String>();//存放元素都只能存放String类型
       *//* array.setArray(0,1);
        array.setArray(1,9);*//*
        array.setArray(2,"qweweq");

        //获取字符串
        String str = array.getArray(2);//此时不需要强转
    }*/

    /*public boolean contains(int toFind){
       *//* if(toFind<0||toFind>usedSize){
            throw new FindException("超出查找范围!");
        }*//*
        for (int i = 0; i < usedSize; i++) {
            if(toFind==elem[i]){
                return true;
            }
        }
        return false;
    }

    public int indexof(int toFind){
        *//*if(toFind<0||toFind>usedSize){
            throw new FindException("超出查找范围!");
        }*//*
        for (int i = 0; i < usedSize; i++) {
            if(toFind==elem[i]){
                return i;
            }
        }
        return -1;
    }*/
}
